﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D5D RID: 3421
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class Product : IMessage<Product>, IMessage, IEquatable<Product>, IDeepCloneable<Product>, IBufferMessage
	{
		// Token: 0x17002B68 RID: 11112
		// (get) Token: 0x0600998E RID: 39310 RVA: 0x0019A1FB File Offset: 0x001983FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<Product> Parser
		{
			get
			{
				return Product._parser;
			}
		}

		// Token: 0x17002B69 RID: 11113
		// (get) Token: 0x0600998F RID: 39311 RVA: 0x0019A202 File Offset: 0x00198402
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ProductReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002B6A RID: 11114
		// (get) Token: 0x06009990 RID: 39312 RVA: 0x0019A214 File Offset: 0x00198414
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return Product.Descriptor;
			}
		}

		// Token: 0x06009991 RID: 39313 RVA: 0x0019A21B File Offset: 0x0019841B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Product()
		{
		}

		// Token: 0x06009992 RID: 39314 RVA: 0x0019A23C File Offset: 0x0019843C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Product(Product other) : this()
		{
			this.pGBCFLGAICO_ = other.pGBCFLGAICO_;
			this.iEGNKPNHBIA_ = other.iEGNKPNHBIA_;
			this.nDHMLKCMOMJ_ = other.nDHMLKCMOMJ_;
			this.cNODGPHDGOE_ = other.cNODGPHDGOE_;
			this.dGPKAFCLJJD_ = other.dGPKAFCLJJD_;
			this.iNMDPFMPFMK_ = other.iNMDPFMPFMK_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009993 RID: 39315 RVA: 0x0019A2A8 File Offset: 0x001984A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Product Clone()
		{
			return new Product(this);
		}

		// Token: 0x17002B6B RID: 11115
		// (get) Token: 0x06009994 RID: 39316 RVA: 0x0019A2B0 File Offset: 0x001984B0
		// (set) Token: 0x06009995 RID: 39317 RVA: 0x0019A2B8 File Offset: 0x001984B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string PGBCFLGAICO
		{
			get
			{
				return this.pGBCFLGAICO_;
			}
			set
			{
				this.pGBCFLGAICO_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17002B6C RID: 11116
		// (get) Token: 0x06009996 RID: 39318 RVA: 0x0019A2CB File Offset: 0x001984CB
		// (set) Token: 0x06009997 RID: 39319 RVA: 0x0019A2D3 File Offset: 0x001984D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint IEGNKPNHBIA
		{
			get
			{
				return this.iEGNKPNHBIA_;
			}
			set
			{
				this.iEGNKPNHBIA_ = value;
			}
		}

		// Token: 0x17002B6D RID: 11117
		// (get) Token: 0x06009998 RID: 39320 RVA: 0x0019A2DC File Offset: 0x001984DC
		// (set) Token: 0x06009999 RID: 39321 RVA: 0x0019A2E4 File Offset: 0x001984E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NDHMLKCMOMJ
		{
			get
			{
				return this.nDHMLKCMOMJ_;
			}
			set
			{
				this.nDHMLKCMOMJ_ = value;
			}
		}

		// Token: 0x17002B6E RID: 11118
		// (get) Token: 0x0600999A RID: 39322 RVA: 0x0019A2ED File Offset: 0x001984ED
		// (set) Token: 0x0600999B RID: 39323 RVA: 0x0019A2F5 File Offset: 0x001984F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ProductGiftType CNODGPHDGOE
		{
			get
			{
				return this.cNODGPHDGOE_;
			}
			set
			{
				this.cNODGPHDGOE_ = value;
			}
		}

		// Token: 0x17002B6F RID: 11119
		// (get) Token: 0x0600999C RID: 39324 RVA: 0x0019A2FE File Offset: 0x001984FE
		// (set) Token: 0x0600999D RID: 39325 RVA: 0x0019A306 File Offset: 0x00198506
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool DGPKAFCLJJD
		{
			get
			{
				return this.dGPKAFCLJJD_;
			}
			set
			{
				this.dGPKAFCLJJD_ = value;
			}
		}

		// Token: 0x17002B70 RID: 11120
		// (get) Token: 0x0600999E RID: 39326 RVA: 0x0019A30F File Offset: 0x0019850F
		// (set) Token: 0x0600999F RID: 39327 RVA: 0x0019A317 File Offset: 0x00198517
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string INMDPFMPFMK
		{
			get
			{
				return this.iNMDPFMPFMK_;
			}
			set
			{
				this.iNMDPFMPFMK_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x060099A0 RID: 39328 RVA: 0x0019A32A File Offset: 0x0019852A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as Product);
		}

		// Token: 0x060099A1 RID: 39329 RVA: 0x0019A338 File Offset: 0x00198538
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(Product other)
		{
			return other != null && (other == this || (!(this.PGBCFLGAICO != other.PGBCFLGAICO) && this.IEGNKPNHBIA == other.IEGNKPNHBIA && this.NDHMLKCMOMJ == other.NDHMLKCMOMJ && this.CNODGPHDGOE == other.CNODGPHDGOE && this.DGPKAFCLJJD == other.DGPKAFCLJJD && !(this.INMDPFMPFMK != other.INMDPFMPFMK) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060099A2 RID: 39330 RVA: 0x0019A3CC File Offset: 0x001985CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PGBCFLGAICO.Length != 0)
			{
				num ^= this.PGBCFLGAICO.GetHashCode();
			}
			if (this.IEGNKPNHBIA != 0U)
			{
				num ^= this.IEGNKPNHBIA.GetHashCode();
			}
			if (this.NDHMLKCMOMJ != 0U)
			{
				num ^= this.NDHMLKCMOMJ.GetHashCode();
			}
			if (this.CNODGPHDGOE != ProductGiftType.ProductGiftNone)
			{
				num ^= this.CNODGPHDGOE.GetHashCode();
			}
			if (this.DGPKAFCLJJD)
			{
				num ^= this.DGPKAFCLJJD.GetHashCode();
			}
			if (this.INMDPFMPFMK.Length != 0)
			{
				num ^= this.INMDPFMPFMK.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060099A3 RID: 39331 RVA: 0x0019A492 File Offset: 0x00198692
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060099A4 RID: 39332 RVA: 0x0019A49A File Offset: 0x0019869A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060099A5 RID: 39333 RVA: 0x0019A4A4 File Offset: 0x001986A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IEGNKPNHBIA != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.IEGNKPNHBIA);
			}
			if (this.PGBCFLGAICO.Length != 0)
			{
				output.WriteRawTag(34);
				output.WriteString(this.PGBCFLGAICO);
			}
			if (this.INMDPFMPFMK.Length != 0)
			{
				output.WriteRawTag(50);
				output.WriteString(this.INMDPFMPFMK);
			}
			if (this.DGPKAFCLJJD)
			{
				output.WriteRawTag(56);
				output.WriteBool(this.DGPKAFCLJJD);
			}
			if (this.NDHMLKCMOMJ != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.NDHMLKCMOMJ);
			}
			if (this.CNODGPHDGOE != ProductGiftType.ProductGiftNone)
			{
				output.WriteRawTag(72);
				output.WriteEnum((int)this.CNODGPHDGOE);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060099A6 RID: 39334 RVA: 0x0019A578 File Offset: 0x00198778
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PGBCFLGAICO.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.PGBCFLGAICO);
			}
			if (this.IEGNKPNHBIA != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.IEGNKPNHBIA);
			}
			if (this.NDHMLKCMOMJ != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NDHMLKCMOMJ);
			}
			if (this.CNODGPHDGOE != ProductGiftType.ProductGiftNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.CNODGPHDGOE);
			}
			if (this.DGPKAFCLJJD)
			{
				num += 2;
			}
			if (this.INMDPFMPFMK.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.INMDPFMPFMK);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060099A7 RID: 39335 RVA: 0x0019A62C File Offset: 0x0019882C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(Product other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PGBCFLGAICO.Length != 0)
			{
				this.PGBCFLGAICO = other.PGBCFLGAICO;
			}
			if (other.IEGNKPNHBIA != 0U)
			{
				this.IEGNKPNHBIA = other.IEGNKPNHBIA;
			}
			if (other.NDHMLKCMOMJ != 0U)
			{
				this.NDHMLKCMOMJ = other.NDHMLKCMOMJ;
			}
			if (other.CNODGPHDGOE != ProductGiftType.ProductGiftNone)
			{
				this.CNODGPHDGOE = other.CNODGPHDGOE;
			}
			if (other.DGPKAFCLJJD)
			{
				this.DGPKAFCLJJD = other.DGPKAFCLJJD;
			}
			if (other.INMDPFMPFMK.Length != 0)
			{
				this.INMDPFMPFMK = other.INMDPFMPFMK;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060099A8 RID: 39336 RVA: 0x0019A6D6 File Offset: 0x001988D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060099A9 RID: 39337 RVA: 0x0019A6E0 File Offset: 0x001988E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num == 24U)
					{
						this.IEGNKPNHBIA = input.ReadUInt32();
						continue;
					}
					if (num == 34U)
					{
						this.PGBCFLGAICO = input.ReadString();
						continue;
					}
					if (num == 50U)
					{
						this.INMDPFMPFMK = input.ReadString();
						continue;
					}
				}
				else
				{
					if (num == 56U)
					{
						this.DGPKAFCLJJD = input.ReadBool();
						continue;
					}
					if (num == 64U)
					{
						this.NDHMLKCMOMJ = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.CNODGPHDGOE = (ProductGiftType)input.ReadEnum();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003B11 RID: 15121
		private static readonly MessageParser<Product> _parser = new MessageParser<Product>(() => new Product());

		// Token: 0x04003B12 RID: 15122
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003B13 RID: 15123
		public const int PGBCFLGAICOFieldNumber = 4;

		// Token: 0x04003B14 RID: 15124
		private string pGBCFLGAICO_ = "";

		// Token: 0x04003B15 RID: 15125
		public const int IEGNKPNHBIAFieldNumber = 3;

		// Token: 0x04003B16 RID: 15126
		private uint iEGNKPNHBIA_;

		// Token: 0x04003B17 RID: 15127
		public const int NDHMLKCMOMJFieldNumber = 8;

		// Token: 0x04003B18 RID: 15128
		private uint nDHMLKCMOMJ_;

		// Token: 0x04003B19 RID: 15129
		public const int CNODGPHDGOEFieldNumber = 9;

		// Token: 0x04003B1A RID: 15130
		private ProductGiftType cNODGPHDGOE_;

		// Token: 0x04003B1B RID: 15131
		public const int DGPKAFCLJJDFieldNumber = 7;

		// Token: 0x04003B1C RID: 15132
		private bool dGPKAFCLJJD_;

		// Token: 0x04003B1D RID: 15133
		public const int INMDPFMPFMKFieldNumber = 6;

		// Token: 0x04003B1E RID: 15134
		private string iNMDPFMPFMK_ = "";
	}
}
